import connect

# 创建连接
conn = connect.create_connect()
# 获取游标对象
cursor = conn.cursor()
# 定义SQL语句
'''创建表'''
create_table = '''
create table create_test_01
 (id int auto_increment primary key, 
  name varchar(10) not null, 
  age int not null)
'''
# 执行SQL
cursor.execute(create_table)
# 提交更改
conn.commit()
# 关闭游标
cursor.close()
# 关闭连接对象
conn.close()
